package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author wxy
 * @Date 2021/1/22 13:23
 * @Version 1.0
 */
@Data
@Entity
@Table(name = "x_drug_base_info")
public class XDrugBaseInfo implements Serializable {
    private static final long serialVersionUID = 3597193669744023602L;

    @Id
    @Column(name = "drug_id_bigint", columnDefinition = "bigint(20)")
    private Long drugId;
    @Column(name = "drug_name_nvarchar", columnDefinition = "varchar(255)")
    private String drugName;
    @Column(name = "drug_type_tinyint", columnDefinition = "tinyint")
    private Byte drugType;
    @Column(name = "disable_bit", columnDefinition = "tinyint(1)")
    private Boolean disable;
    @Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
    private Date createTime;
    @Column(name = "py_nvarchar", columnDefinition = "varchar(255)")
    private String py;
    @Column(name = "price_money", columnDefinition = "decimal(10,2)")
    private BigDecimal price;
    @Column(name = "spec_nvarchar", columnDefinition = "varchar(255)")
    private String spec;
    @Column(name = "unit_nvarchar", columnDefinition = "varchar(255)")
    private String unit;
    @Column(name = "img_nvarchar", columnDefinition = "varchar(255)")
    private String img;
    @Column(name = "med_way_nvarchar", columnDefinition = "varchar(255)")
    private String medWay;
    @Column(name = "freq_nvarchar", columnDefinition = "varchar(255)")
    private String freq;
    @Column(name = "does_int", columnDefinition = "int(11)")
    private Integer does;
    @Column(name = "does_unit_nvarchar", columnDefinition = "varchar(255)")
    private String doesUnit;
    @Column(name = "remark_nvarchar", columnDefinition = "varchar(255)")
    private String remark;
}
